/**
 * 
 */
package iut.acy.cut4u.model;

import java.util.GregorianCalendar;

import junit.framework.Assert;
import junit.framework.TestCase;

/**
 * @author khaith
 *
 */
public class RendezVousTest extends TestCase {

	/* (non-Javadoc)
	 * @see junit.framework.TestCase#setUp()
	 */
	private RendezVous rdv;
	
	protected void setUp() throws Exception {
		super.setUp();
		
		Employe emp = new Employe(Sexe.FEMININ,"RAPT", "Manue",StatutEmploye.CDI, CategorieEmploye.COIFFEUR);
		emp.ajouteConge(new Conge(new GregorianCalendar(2011,12,23), new GregorianCalendar(2011,12,28)));
		emp.ajouteDemiJourRepos(2);
		emp.ajouteDemiJourRepos(3);
		
		Client clt = new Client(Sexe.MASCULIN,"KHAIT","Hamza");
		
		GregorianCalendar dateRDV = new GregorianCalendar(2011,12,20);
		
		this.rdv = new RendezVous(dateRDV,new Horaire(9,00),new Horaire(10,00),emp,clt);
		
	}

	/**
	 * Test method for {@link iut.acy.cut4u.model.RendezVous#estCompatibleReposEmploye()}.
	 */
	public void testEstCompatibleReposEmploye() {
		try{
			Assert.assertTrue(this.rdv.estCompatibleReposEmploye());
		}
		catch(Exception ex){
			ex.getStackTrace();
		}
	}

	/**
	 * Test method for {@link iut.acy.cut4u.model.RendezVous#estCompatibleCongesEmploye()}.
	 */
	public void testEstCompatibleCongesEmploye() {
		try{
			Assert.assertTrue(this.rdv.estCompatibleCongesEmploye());
		}
		catch(Exception ex){
			ex.getStackTrace();
		}
	}

	/**
	 * Test method for {@link iut.acy.cut4u.model.RendezVous#estCompatibleEmploye()}.
	 */
	public void testEstCompatibleEmploye() {
		try{
			Assert.assertTrue(this.rdv.estCompatibleEmploye());
		}
		catch(Exception ex){
			ex.getStackTrace();
		}	}

}
